<?php
if(isset($banners) == TRUE && count($banners) > 0) :
    foreach($banners as $obj) :
?>
<a href="<?php echo $obj->url ?>" title=""><img width="<?php echo $width ?>" src="<?php echo Url::site('assets/upload/banner/' . $obj->image) ?>" alt="" /></a>
<?php
    endforeach;
endif;
?>